﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="RoomBookForm03.aspx.cs" Inherits="App_Input_RoomBookForm03" Title="入住登记" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
<script language="javascript">
    function settext(id,val){
     //alert(id + '***' + val);
     window.document.getElementById(id).value=val;
    }
    function popopen(){
        window.open('../Commons/MemberSearchForm.aspx?tID=<%=txtPersonNo.ClientID%>','MemberSearchForm','scrollbars,resizable')
    }
</script>
                <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" ForeColor="Red">
                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtApartmentNo">
                        <cc1:ComAbsParamsAttribute Parameter="房间编号" />
                    </cc1:CheckRequiredAttribute>
                    <cc1:CheckContainsAttribute Code="E0082" ControlToValidator="txtPersonNo">
                        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
                    </cc1:CheckContainsAttribute>
                    <cc1:CheckHalfAttribute Code="E0317" ControlToValidator="txtPersonNo">
                        <cc1:ComAbsParamsAttribute Parameter="会员编号" />
                    </cc1:CheckHalfAttribute>
                </cc1:ComValidator>
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                &nbsp;<br />
                <table width="80%">
                    <tr>
                        <td style="height: 87px">
                            <table border="0" class="table_border_line">
                                <tr>
                                    <td align="left" colspan="4">
                                        <script language="javascript">
                                            (new TitleBar('RegisterBar', '入住登记')).showBar();
                                        </script>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 78px; height: 32px; background:#ffffff">&nbsp;</td>
                                    <td align="left" style="width: 120px; white-space: nowrap; height: 32px; background:#ffffff">房间编号</td>
                                    <td align="left" style="HEIGHT: 32px; background:#ffffff">
                                        <table width="330">
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;<asp:TextBox ID="txtApartmentNo" runat="server" Width="240px" ReadOnly="True"></asp:TextBox></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="right" style="height: 32px; background:#ffffff">&nbsp;</td>
                                </tr>                               
                                <tr>
                                    <td style="width: 78px; height: 18px; background:#ffffff">&nbsp;</td>
                                    <td align="left" style="width: 120px; white-space: nowrap; height: 18px; background:#ffffff">
                                        会员编号</td>
                                    <td align="left" style="height: 18px; background:#ffffff">
                                        <table width="330">
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;<asp:TextBox ID="txtPersonNo" runat="server" Width="240px"></asp:TextBox>
                                                    &nbsp;<a href="#" onclick="javascript:popopen();">
                                                        <img src="../../images/search.jpg" border="0" /></a></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="right" style="height: 18px; background:#ffffff">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="Button2" runat="server" Text="  确 定  " Height="20px" Width="89px" CssClass="button" OnClick="Button2_Click"/>&nbsp;
                            &nbsp;<asp:Button ID="Button3" runat="server" Text="  返 回  " Height="20px" Width="89px" CssClass="button" OnClick="Button3_Click"/>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="GridView_table" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="MemberNo" HeaderText="会员编号">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="会员姓名">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField DataField="StatusNoChar" HeaderText="会员状态">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                    </Columns>
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                </asp:GridView>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <table width="80%">
                    <tr>
                        <td>
                            <table class="table_border_line "  style="background:ffffff">
                                <tr>
                                    <td align="left" colspan="4">
                                        <script language="javascript">
                                            (new TitleBar('RegisterBar', '入住信息登记')).showBar();
                                        </script>
                                    </td>
                                </tr>

                                <tr>
                                    <td style="width: 10px; height: 32px;">&nbsp;</td>
                                    <td style="width: 16%" align="left" class="list_data_bg_left">房间编号：</td>
                                    <td style="width: 80%" align="left">&nbsp;<asp:Label ID="lblApartmentNo" runat="server"></asp:Label></td>
                                    <td colspan="3" align="right" style="height: 26px">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="width: 10px; height: 32px">&nbsp;</td>
                                    <td class="list_data_bg_left">地理位置：</td>
                                    <td>&nbsp;<asp:Label ID="lblLocation" runat="server"></asp:Label></td>
                                    <td colspan="3" align="right">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="height: 32px; width: 10px;">&nbsp;</td>
                                    <td class="list_data_bg_left" style="">房间状态：</td>
                                    <td style="height: 26px">&nbsp;<asp:Label ID="lblStatusNo" runat="server"></asp:Label></td>
                                    <td colspan="3" align="right" style="height: 26px">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="width: 10px; height: 32px">&nbsp;</td>
                                    <td class="list_data_bg_left">房间描述：</td>
                                    <td>&nbsp;<asp:Label ID="lblMemo" runat="server"></asp:Label></td>
                                    <td colspan="3" align="right">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="width: 10px; height: 32px"></td>
                                    <td class="list_data_bg_left" style="">
                                        会员编号：</td>
                                    <td style="">&nbsp;
                                        <asp:Label ID="lblPersonNo" runat="server"></asp:Label></td>
                                    <td align="right" colspan="3"></td>
                                </tr>
                                <tr>
                                    <td style="WIDTH: 10px; HEIGHT: 32px"></td>
                                    <td class="list_data_bg_left" style="">
                                        会员姓名：</td>
                                    <td style="">&nbsp;<asp:Label ID="lblName" runat="server"></asp:Label></td>
                                    <td align="right" colspan="3" style=""></td>
                                </tr>
                                <tr>
                                    <td style="height: 32px; width: 10px;"></td>
                                    <td class="list_data_bg_left" style="">备注：</td>
                                    <td style="height: 26px">&nbsp;<asp:TextBox ID="txtMemo" runat="server" Width="97%" MaxLength="1024" TextMode="MultiLine"></asp:TextBox></td>
                                    <td align="right" colspan="3" style=""></td>
                                </tr>
                                <tr>
                                    <td style="WIDTH: 10px"></td>
                                    <td colspan="2" align="center"></td>
                                    <td colspan="3" align="right">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" style="">
                            <asp:Button ID="Button4" runat="server" Text="  登 记  " Height="20px" Width="89px" CssClass="button" OnClick="Button4_Click"/>
                            &nbsp;&nbsp;                             
                            <asp:Button ID="Button5" runat="server" Text="  返 回  " Height="20px" Width="89px" CssClass="button" OnClick="Button5_Click"/>
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView><br />
</asp:Content>

